package com.baichuan.zntx.domain.bo;

import com.baichuan.common.core.validate.EditGroup;
import com.baichuan.zntx.domain.Message;
import com.baichuan.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 报警消息管理业务对象 t_message
 *
 * @author Baichuan
 * @date 2024-05-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Message.class, reverseConvertGenerate = false)
public class MessageBo extends BaseEntity {

    private String id;
    /**
     * 设备
     */
    @NotBlank(message = "设备不能为空")
    private String deviceId;

    private String content;
    private Date sendTime;
    private Integer sendCount;
    /**
     * 消息类型
     */
    @NotNull(message = "消息类型不能为空")
    private Integer type;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { EditGroup.class })
    private Integer status;


}
